Release 10.1A: OpenEdge Development:
Basic Database Tools


Generate Include Files option

Choose this option to quickly prepare an include file to store language statements. Because the ASSIGN, FORM, and DEFINE WORK-TABLE statements can be long and complicated, you might want to store them in an include file. Also, particular instances of these statements are often repeated in different procedures, and using an include file lets you easily insert them into any 4GL procedure. See the following reference entries in OpenEdge Development: Progress 4GL Reference for more information: { }Include File, ASSIGN statement, FORM statement, and DEFINE WORK-TABLE statement.

Table 11–4 describes the menu that appears when you choose this option. More detailed descriptions of the options follow the table.

Table 11–4: Generate Include Files menu 
Menu option
Description
ASSIGN Statement ...
Generates an ASSIGN statement to copy a table.
FORM Statement ...
Generates a FORM statement for a table.
DEFINE WORK-TABLE Statement ...
Generates a WORK-TABLE statement for a table.

ASSIGN Statement

Use this option to generate an ASSIGN statement to copy a table. The Data Dictionary alphabetically lists all the tables defined for your database. When you choose a table, the Data Dictionary prompts you for the filename of the output file. The default filename is table-name.i. The Data Dictionary creates an output file that contains an ASSIGN statement to copy each field of the table from one buffer record to another and prompts you to continue.

Figure 11–6 shows an example of the ASSIGN statement generated for the customer table in the sports database.

Figure 11–6: ASSIGN Statement example

FORM Statement

Choose Generate Include Files FORM Statement to generate a FORM statement for a table. The Data Dictionary alphabetically lists all the tables defined for your database. When you select a table, the Generate FORM dialog box shown in Figure 11–7 appears.

Figure 11–7: Generate FORM dialog box

The Generate FORM dialog box contains the following fields:

Figure 11–8 shows an example of the FORM statement generated for the customer table in the SPORTS database.

Figure 11–8: FORM Statement example

DEFINE WORK-TABLE Statement

Use this option to generate a DEFINE WORK-TABLE statement for a table. The Data Dictionary alphabetically lists all the tables defined for your database. When you choose a table, the Data Dictionary prompts you for the filename of the output file. The default filename is table-name.i. The Data Dictionary displays a status message and prompts you to continue.

Figure 11–9 shows an example of the DEFINE WORK-TABLE statement generated for the customer table in the sports database.

Figure 11–9: DEFINE WORK-TABLE Statement example


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095